package com.bootdo.crm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.crm.dao.LeadsDao;
import com.bootdo.crm.domain.LeadsDO;
import com.bootdo.crm.service.LeadsService;



@Service
public class LeadsServiceImpl implements LeadsService {
	@Autowired
	private LeadsDao leadsDao;
	
	@Override
	public LeadsDO get(Integer leadsId){
		return leadsDao.get(leadsId);
	}
	
	@Override
	public List<LeadsDO> list(Map<String, Object> map){
		return leadsDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return leadsDao.count(map);
	}
	
	@Override
	public int save(LeadsDO leads){
		return leadsDao.save(leads);
	}
	
	@Override
	public int update(LeadsDO leads){
		return leadsDao.update(leads);
	}
	
	@Override
	public int remove(Integer leadsId){
		return leadsDao.remove(leadsId);
	}
	
	@Override
	public int batchRemove(Integer[] leadsIds){
		return leadsDao.batchRemove(leadsIds);
	}
	
}
